<%@ page import="org.apache.shiro.SecurityUtils" %><%--
  Created by IntelliJ IDEA.
  User: hedingwei
  Date: 2021/2/18
  Time: 15:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String R = request.getServletContext().getContextPath();
%>

<%
    Object user =SecurityUtils.getSubject().getPrincipal();
    if(user!=null){
        request.setAttribute("user",user);
        System.out.println(user);
    }
%>
